import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'


Vue.filter('number', function(num){
  var str = num.toString()
  var arr = []
  while(str.length > 3){
    arr.unshift(str.slice(-3))
    str = str.slice(0,-3)
  }
  if(str) arr.unshift(str)
  return arr.join(',')
})

new Vue({
  el: '#app',
  render: h => h(App),
  store,
  router
})
